package com.example.kt_base.s3

//TODO 53.Kotlin语言的with函数使用
fun main() {

    val str = "derry"
    val r1 = with(str, ::getStrLen)
    with(r1, ::println)

}

private fun getStrLen(str: String) = str.length
